<%@page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.*,com.gmail.andersoninfonet.dao.*,com.gmail.andersoninfonet.modelo.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>lista contatos</title>
</head>
<body>
	<table border="2">
		<tr>
			<td>Nome</td>
			<td>Email</td>
			<td>Enderco</td>
			<td>Data de Nascimento</td>
		</tr>
		<%
		ContatoDAO dao = new ContatoDAO();
		List<Contato> c = dao.getLista();
		for(Contato contato : c){
		%>
		<tr>
			<td><%=contato.getNome() %></td>
			<td><%=contato.getEmail() %></td>
			<td><%=contato.getEndereco() %></td>
			<td><%=contato.getDataNascimento().getTime() %></td>
		</tr>
		<%} %>
	</table>
</body>
</html>